function checkit() {
	var rnt = true;
	if (isblank(document.form1.CAR_NO)) {
		rnt = false;
		alert("请填写汽车牌照号");
	} else if (isblank(document.form1.CAR_TYPE)) {
		rnt = false;
		alert("请填写车型");
	} else if (isblank(document.form1.CAR_COLOR)) {
		rnt = false;
		alert("请填写汽车颜色");
	} else if (!isfloat(document.form1.CAR_PL)) {
		rnt = false;
		alert("请填写正确的排量");
	} else if (!isfloat(document.form1.CAR_HYL)) {
		rnt = false;
		alert("请填写正确的耗油量");
	} else if (!isinteger(document.form1.CAR_SIZE)) {
		rnt = false;
		alert("请填写正确的座位数");
	}

	return rnt;
}

/**
 * 保存成功后回调函数
 */
function forwardFunc() {
	Ext.MessageBox.confirm('提示', '要继续增加新的内容吗？', function(e) {
				if (e == "yes") {
					handleRefresh();
				} else {
					window.location.href = context
							+ '/system/tablequery/jsplist.jsp?queryKey=carlist';
				}
			});
}

/**
 * 更新成功后回调函数
 */
function forwardFunc() {
	window.location.href = context
			+ '/system/tablequery/jsplist.jsp?queryKey=carlist';
}

/**
 * 初始化form表单项
 * 
 * @param {}
 *            json
 */
function initFunc(json) {
	if (json != null) {
		$('CAR_ID').value = json.data.CAR_ID;
		$('CAR_DJRID').value = json.data.CAR_DJRID;
		$('CAR_DJRNAME').value = json.data.CAR_DJRNAME;
		$('CAR_STATUS').value = json.data.CAR_STATUS;
		$('CAR_DATE').value = json.data.CAR_DATE;
		$('CAR_NO').value = json.data.CAR_NO;
		$('CAR_TYPE').value = json.data.CAR_TYPE;
		$('CAR_CP').value = json.data.CAR_CP;
		$('CAR_COLOR').value = json.data.CAR_COLOR;
		$('CAR_ENO').value = json.data.CAR_ENO;
		$('CAR_CJNO').value = json.data.CAR_CJNO;
		$('CAR_PL').value = json.data.CAR_PL;
		$('CAR_HYL').value = json.data.CAR_HYL;
		$('CAR_SIZE').value = json.data.CAR_SIZE;
		$('CAR_DESC').value = json.data.CAR_DESC;
	}
}